package com.imooc.framework.thread;

public class ThreadTest {
    public static void main(String[] args) throws InterruptedException {
        Thread t1 = new MyThread("thread1");
        Thread t2 = new MyThread("thread2");
        Thread t3 = new MyThread("thread3");
        t1.setName("thread1");
        t2.setName("thread2");
        t3.setName("thread3");
        t1.start();
        t1.join();
        t2.start();
        t2.join();
        t3.start();
        t3.join();
        t3.run();
        System.out.println("over");
    }
}
